package com.lix.service.workflow;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lix.base.BaseResult;
import com.lix.pojo.model.Leave;
import com.lix.vo.workflow.req.LeaveReq;

public interface ILeaveService extends IService<Leave> {

    /**
     * 添加请假信息
     *
     * @param leave
     * @return
     */
    BaseResult add(Leave leave);

    /**
     * 条件分页查询请假列表
     *
     * @param req
     * @return
     */
    BaseResult listPage(LeaveReq req);

    /**
     * 更新请假信息
     */
    BaseResult update(Leave leave);
}
